
import { request } from 'umi'
// export function delTestType(testTypeId: string) {
//     return request('/exam/delQuestionsType', {
//         data: { testTypeId },
//         method: "POST"
//     })
// }

export function gitarticlerecommend(page?: number, pageSize?: number, status?: string) {
    return request('/api/article/recommend', { params: { page, pageSize, status } })

}

export function page(page: number, pageSize = 12, status = "publish") {
    return request('/api/article', { params: { page, pageSize, status } })

}


export function getshow() {
    return request("/api/article/all/recommend")
}


export function getkeyword(key: string) {
    return request(`/api/search/article?keyword=${key}`)
}